package com.dongdongshop.enums;


public enum ResultEnum {
    OK(8888,"操作成功"),
    ER(9000,"操作失败"),

    NO_LOGIN(10001,"用户未登录"),
    PWD_ER(10002,"密码错误"),
    LOGIN_OK(10003,"登录成功"),
    LOGIN_er(10004,"账号/手机号/邮箱:错误"),
    shen_er(10005,"账号未审核"),
    shenhe_er(10006,"审核失败"),
    shenhe_OK(10007,"审核成功"),


    NO_PERMS(10003,"权限不足"),
    OK_DELE(7000,"删除成功"),
    ER_DELE(7001,"删除失败"),

    HX_OK(8887,"回显成功"),
    HX_ER(8886,"回显失败"),

    XG_OK(8700,"修改成功"),
    XG_ER(8701,"修改失败"),
    FLOW_LIMITING(10008,"请求太多,被限流"),

    INVAID_TOKEN(4,"无效的token");

//    FLOW_LIMITING(10008,"请求太多,被限流");


    private Integer dataCode;
    private String dataMessage;

    ResultEnum() {
    }

    ResultEnum(Integer dataCode, String dataMessage) {
        this.dataCode = dataCode;
        this.dataMessage = dataMessage;
    }

    public Integer getDataCode() {
        return dataCode;
    }

    public void setDataCode(Integer dataCode) {
        this.dataCode = dataCode;
    }

    public String getDataMessage() {
        return dataMessage;
    }

    public void setDataMessage(String dataMessage) {
        this.dataMessage = dataMessage;
    }
}
